<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>11.6作业</title>
</head>

<body>
    <script>
        let flag = true
        console.log(flag)
        while (flag === true) {
            let username = prompt('请输入你的名字')
            if (username === '高晨') {
                while (flag === true) {
                    let password = prompt('请输入你的密码')
                    if (password === 'jojoli') {
                        alert('鉴定完毕，老规矩，二次元爬')
                        flag = false
                        break

                    } else {
                        alert('请输入    jojoli')
                    }
                }
            } else {
                alert('你叫高晨')
            }
        }
    </script>
</body>

</html>